<!-- 组件名称 -->
<template>
    <el-collapse modelValue="1">
        <el-collapse-item title="组件名称" name="1">
            <el-input v-model="widget.widgetData.eles.customFeature.name" placeholder="请输入列表名称" />
        </el-collapse-item>
    </el-collapse>
</template>

<script>
import { defineComponent, toRefs, computed } from 'vue'
export default defineComponent({
    name: 'RowComponentName',
    props: {
        widget: {
            type: Object,
            default: () => ({})
        }
    },
    setup(props) {
        const { widget } = toRefs(props)

        const widgetType = computed(() => widget.value?.widgetData?.eles?.type)

        return {
            widget,
            widgetType
        }
    }
})
</script>